<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width,user-scalable=no"name="viewport">
<title>我的足迹</title>
<link rel="stylesheet" type="text/css" href="<?php echo C('WEB_URL');?>Public/customer/css/base.css" />
<link rel="stylesheet" type="text/css" href="<?php echo C('WEB_URL');?>Public/customer/css/style.css" />
<link rel="stylesheet" type="text/css" href="<?php echo C('WEB_URL');?>Public/customer/css/bootstrap.min.css" />
<script type="text/javascript" charset="UTF-8" src="<?php echo C('WEB_URL');?>Public/customer/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="<?php echo C('WEB_URL');?>Public/customer/js/bootstrap.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="<?php echo C('WEB_URL');?>Public/customer/js/script.js"></script>

</head>
<body>
<div id="box">
 <div class="navbar navbar-default navbar-fixed-top">
  <header>
   <h1><a href="index.html"><span class="glyphicon glyphicon-menu-left"></span></a></h1>
   <p class="title">我的足记</p>
  </header>
 </div><!--navbar-fixed-top-->
 <div class="integrals">
	<ul id="hear">
	 <li class="action" style="border-bottom:5px solid #4AA8DB;border-right:1px solid #ccc;"><a href="#"><p class="checkMoney"></p><p class="checkTitle">消费记录</p></a></li>
	 <li><a href="#" ><p class="checkMoney"></p><p class="checkTitle">充值记录</p></a></li>
	</ul>
	<ul id="contentop">
	 <li class="action">
	  <?php if(empty($list)): ?><div class="checkCon">
	   <div class="conLeft">
	    <p></p>
	    <p></p>
	   </div><!--conLeft-->
	   <div class="conCenter">
	  
	   </div><!--conCenter-->
	   <div class="conRight">
	     <p style="margin：auto">&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp暂无记录</p>
	    <p></p>
	   </div><!--conRight-->
	   <p></p>
	  </div><!--checkCon-->
		<?php else: ?> 


	  <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="checkCon">
	   <div class="conLeft">
	    <p><?php echo ($vo["time"]); ?></p>
	    <p></p>
	   </div><!--conLeft-->
	   <div class="conCenter">
	    <img src="<?php echo C('WEB_URL'); echo ($vo["small_logo"]); ?>" />
	   </div><!--conCenter-->
	   <div class="conRight">
	    <p>使用折扣券</p>
	    <p><?php echo ($vo["business_name"]); ?></p>
	   </div><!--conRight-->
	   <p></p>
	  </div><!--checkCon--><?php endforeach; endif; else: echo "" ;endif; endif; ?> 
	 </li>
	 <li>
	 <?php if(empty($list1)): ?><div class="checkCon">
	   <div class="conLeft">
		<p></p>
		<!--<p>21：00</p>-->
	   </div><!--conLeft-->
	   <div class="conCenter">
		
	   </div><!--conCenter-->
	   <div class="conRight">
		<p></p>
		<!--<p><?php echo ($vo1["bank"]); ?></p>-->
		 <p style="margin：auto">&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp暂无记录</p>
	   </div><!--conRight-->
	  </div><!--checkCon-->
		<?php else: ?> 

		 <?php if(is_array($list1)): $i = 0; $__LIST__ = $list1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo1): $mod = ($i % 2 );++$i;?><div class="checkCon">
	   <div class="conLeft">
		<p><?php echo ($vo1[time]); ?></p>
		<!--<p>21：00</p>-->
	   </div><!--conLeft-->
	   <div class="conCenter">
		<img src="<?php echo C('WEB_URL');?>Public/business/images/bank_<?php echo ($vo1["bank"]); ?>.jpg" />
	   </div><!--conCenter-->
	   <div class="conRight">
		<p>+<?php echo ($vo1["money"]); ?>.00</p>
		<!--<p><?php echo ($vo1["bank"]); ?></p>-->
		<p>
			<?php switch($vo1["bank"]): case "1": ?>中国农业银行<?php break;?>
			<?php case "2": ?>中国光大银行<?php break;?>
			<?php case "3": ?>北京银行<?php break;?>
			<?php case "4": ?>中国银行<?php break;?>
			<?php case "5": ?>中国建设银行<?php break;?>
			<?php case "6": ?>兴业银行<?php break;?>
			<?php case "7": ?>招商银行<?php break;?>
			<?php case "8": ?>中国民生银行<?php break;?>
			<?php case "9": ?>广东发展银行<?php break;?>	
			<?php case "10": ?>广州银行<?php break;?>
			<?php case "11": ?>中国工商银行<?php break;?>
			<?php case "11": ?>中国邮政储蓄银行<?php break; endswitch;?>
		</p>
	   </div><!--conRight-->
	  </div><!--checkCon--><?php endforeach; endif; else: echo "" ;endif; endif; ?> 
	 </li>
	</ul>		
</div>
 <div class="navbar navbar-default navbar-fixed-bottom">
   <footer>
    <dl>
     <dt><a href="<?php echo U('index');?>"><img src="<?php echo C('WEB_URL');?>Public/customer/images/home.png" /></a></dt>
     <dd><a href="<?php echo U('index');?>" class="current">首页</a></dd>
    </dl>
    <dl>
     <dt><a href="<?php echo U('recommends',['uid'=>$_SESSION[user_id]]);?>"><img src="<?php echo C('WEB_URL');?>Public/customer/images/mores_17.jpg" /></a></dt>
     <dd><a href="<?php echo U('recommends',['uid'=>$_SESSION[user_id]]);?>">推荐有奖</a></dd>
    </dl>
    <dl>
     <dt><a href="<?php echo U('more');?>"><img src="<?php echo C('WEB_URL');?>Public/customer/images/home-03.jpg" /></a></dt>
     <dd><a href="<?php echo U('more');?>">更多</a></dd>
    </dl>
   </footer>
  </div><!--/navbar-->
</div><!--box-->
<script type="text/javascript">
//微信判断header是否显示
if(isWeiXin()){ 
//alert("====");
$(".title").hide();
} 
else{
//alert("+++++");
}	
//选项卡切换
$(function(){
 $("#hear li").click(function(){
  $(this).css({
   borderBottom: "5px solid #4AA8DB",
   height:"80px"
  }).siblings().css({
   borderBottom: "none",
   height:"80px"
 });
});					
$("#contentop li:gt(0)").hide();	
$("#hear li").click(function(){
 $(this).addClass("action").siblings().removeClass("action");
 var index = $(this).index();
 $("#contentop li").eq(index).css("display","block").siblings().css("display","none");
 });
});
</script>
</body>
</html>